home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 3 / CD ACTUAL 3.iso / linux / system / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Sim68000 / main.cxx next >
Encoding:
C/C++ Source or Header  |  1995-07-26  |  1.3 KB  |  46 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // $Id: main.cxx,v 1.2 1994/08/22 07:33:55 bmott Exp $
  3. ///////////////////////////////////////////////////////////////////////////////
  4. // main.cxx 
  5. //
  6. //   The main procedure has to instantiate all of the objects and startup the
  7. // user interface command parser
  8. //
  9. // Sim68000 "Motorola 68000 Simulator"
  10. // Copyright (c) 1993
  11. // By: Bradford W. Mott
  12. // Novemeber 13,1993
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. // $Log: main.cxx,v $
  16. // Revision 1.2  1994/08/22  07:33:55  bmott
  17. // Modified include statements and change UICommand to Interface
  18. //
  19. // Revision 1.1  1994/02/18  19:59:12  bmott
  20. // Initial revision
  21. //
  22. ///////////////////////////////////////////////////////////////////////////////
  23.  
  24. #include "Interface.hxx"
  25. #include "cpu/m68000.hxx"
  26. #include "devices/DeviceRegistry.hxx"
  27. #include "loader/Loader.hxx"
  28.  
  29.  
  30. main()
  31. {
  32.  AddressSpace*        addr_space = new AddressSpace(0x00ffffff);
  33.  BasicCPU*            processor  = new m68000(addr_space);
  34.  BasicLoader*         loader     = new Loader(processor);
  35.  BasicDeviceRegistry* registry   = new DeviceRegistry;
  36.  
  37.  Interface interface(processor, registry, loader);
  38.  interface.CommandLoop();
  39.  
  40.  delete registry;
  41.  delete loader;
  42.  delete processor;
  43.  delete addr_space;
  44. }
  45.  
  46.